package com.itzzj.common.information;


import cn.hutool.system.oshi.CpuInfo;
import cn.hutool.system.oshi.OshiUtil;
import oshi.software.os.OperatingSystem;

/**
 * 服务器相关信息
 */
public class Server {
    public static void main(String[] args) {
        CpuInfo cpuInfo = OshiUtil.getCpuInfo();
        System.out.println(cpuInfo.toString());
        System.out.println("==============================================================");
        OperatingSystem os = OshiUtil.getOs();
        System.out.println(os.toString());
    }

}














































